package com.demo.thread.create;

/**
 * @author : YU.TAN
 * @date : 2021/11/1 13:46
 */
public class ThreadTwo implements Runnable {

    private String s;

    public ThreadTwo(String s) {
        this.s = s;
    }

    @Override
    public void run() {
        System.out.println(s);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            Thread threadTwo = new Thread(new ThreadTwo(i + ""));
            threadTwo.start();
        }
    }
}
